<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
include($pun_root.'/itemstats/generic_itemstats.php');
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $wm_config["title"] ?> / <?php echo $_title ?></title>
<link rel="stylesheet" href="<?php echo $pun_http ?>/itemstats/templates/wowhead.css" type="text/css">
<script type="text/javascript" src="<?php echo $pun_http ?>/itemstats/overlib/overlib.js"><!-- overLIB (c) Erik Bosrup --></script>

<script type="text/javascript">
function unhideSelectedItem(obj, prefix)
{
  var id = obj.options[obj.selectedIndex].value;
  unhide(prefix + id);
}

function unhide(divID) {
  var item = document.getElementById(divID);
  if (item) {
    item.className=(item.className=='hidden')?'unhidden':'hidden';
  }
}

function hideAll(scope)
{
  var e=document.getElementById(scope).getElementsByTagName('div');
  //alert('scope: '+scope+', len: '+e.length);
  for(var i=0;i<e.length;i++) {
    if (e[i].className=='unhidden') {
      e[i].className='hidden';
    }
  }
}
</script>

<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $wm_config["style"] ?>" />
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $war_http ?>/lib/Oxygen.css" />
<link rel="shortcut icon" href="<?php echo $wm_config["favicon"]?>" >
<style type="text/css">
ul.menu li.x<?php echo $_category?> a,
ul.menu li.x<?php echo $_category?> a:hover {
	color: #333 !important;
	background: #ccc;
	text-decoration: none;
	}
</style>

</head>
<body class="flex">

<div id="page">
<div id="header">
<?php
if($admin_active == 1) $act_p = "admin";
else $act_p = "war";
wm_navbar($act_p);
?>
</div>
<!-- closes header -->

<div id="subnav" align="right">
<div id="subnav" style="float: left;">
<?php
if($character["character_approved"]) include('wm_nav.php');
else echo 'Welcome,  '.$pun_user["username"].'.';
?>
</div>
</div>

<div class="content">
<div class="primary">
<div class="itemtext">
<div id="punwrap">
<div id="punindex" class="pun">

